3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
Point3D location
Attenuation attenuation
Boolean castsShadows
A point light is a light that emits rays in all directions from a specific point source. A point light may suffer attenuation over distance and may cast shadows.
Some style objects also specify whether or not objects in a scene shall receive shadows. However, objects in the scope of a receive shadows style set to False do not receive shadows, regardless of whether they are also appropriately situated to receive shadows from a light set to cast shadows.
Light data (optional). If no child object is specified, the light should have the properties specified in the default setting of a light data object.
BeginGroup ( DisplayGroup ( ) )
Triangle ( ... )
Box ( ... )
Container (
PointLight (
-10, 1, -1 # location
1 0 1 # attenuation
True # casts shadows
)
LightData ( ... )
)
EndGroup ( )
Previous | QD3D Book | Overview | Chapter Contents | Next |